import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

get0_7screenWidth(context) {
  return MediaQuery.of(context).size.width * 0.7;
}

setStatusBarBlack() {
  SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(
    statusBarColor: Colors.transparent,
    statusBarBrightness: Brightness.dark,
    statusBarIconBrightness: Brightness.dark,
  );
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}

bool isAndroid() {
  return Platform.isAndroid ? true : false;
}

String getPlatform() {
  if (isAndroid()) {
    return "app-android";
  } else {
    return "app-ios";
  }
}

